package com.pj.ca.util;

import com.pj.ca.snowflake.SnowflakeIdGenerator;

import java.math.BigInteger;

/**
 * 描述：
 *
 * @author pengjun
 * @date 2021/11/3 15:12
 */
public class IdGeneratorUtil {
    static SnowflakeIdGenerator idWorker = new SnowflakeIdGenerator(0, 0);
    public static BigInteger generatorBigIntId() {
        return BigInteger.valueOf(idWorker.nextId());
    }
}
